<nav class="main">
    <ul class="clearfix">
        {% for app_name, url_name, app_title in [
            ('answers',  'answers/index',  _('Answers')),
            ('pastebin', 'pastebin/index', _('Pastebin')),
            ('wiki',     'wiki/index',     _('Wiki')),
        ] %}
            {% if app_name in apps_installed -%}
                <li{% if current_app == app_name %} class="active"{% endif %}><a href="{{ url_for(url_name) }}">{{ app_title }}</a></li>
            {% endif %}
        {% endfor %}
    </ul>
</nav>
